package com.example.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.api.model.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuDao extends BaseMapper<Menu> {

    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<Menu> getMenuWithRole();

    List<Menu> getMenusByAdminId(@Param("adminId") Integer adminId);
    
}